package com.yipingnai.blog.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Author: 一瓶奶
 * @Url: www.yipingnai.cn
 * @Date: 2020/6/21 11:47
 */
public class PV {
    private Integer id;
   @JsonFormat(pattern = "MM-dd",timezone = "GMT+8")
    private Date pvDate;
    private Integer pageView;

    @Override
    public String toString() {
        return "PV{" +
                "id=" + id +
                ", pvDate=" + pvDate +
                ", pageView=" + pageView +
                '}';
    }

    public PV(Integer id, Date pvDate, Integer pageView) {
        this.id = id;
        this.pvDate = pvDate;
        this.pageView = pageView;
    }

    public PV() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getPvDate() {
        return pvDate;
    }

    public void setPvDate(Date pvDate) {
        this.pvDate = pvDate;
    }

    public Integer getPageView() {
        return pageView;
    }

    public void setPageView(Integer pageView) {
        this.pageView = pageView;
    }
}
